/**
 * 删除数据库
 * @param {*} dbName 
 * @returns 
 */
export function deleteDBBase(dbName) {
    const deleteRequest = window.indexedDB.deleteDatabase(dbName)
    return new Promise((resolve, reject) => {
      deleteRequest.onerror = function(event) {
        console.log('删除失败')
      }
      deleteRequest.onsuccess = function(event) {
        console.log('删除成功')
      }
    })
  }
                          